From e6ff008af0131f17bc43d1692a0f575744fcfa4b Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Wed, 7 Sep 2005 16:50:55 +0000 Subject: [PATCH] Always bind dom0 virqs to vcpu 0. Signed-off-by: Christian Limpach --- xen/common/event_channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 007c0f279b..5f6cafc87a 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -251,6 +251,9 @@ static long evtchn_bind_virq(evtchn_bind_virq_t *bind) if ( virq >= ARRAY_SIZE(v->virq_to_evtchn) ) return -EINVAL; + if ( d->domain_id == 0 && virq >= VIRQ_CONSOLE ) + v = d->vcpu[0]; + spin_lock(&d->evtchn_lock); /* @@ -271,6 +274,7 @@ static long evtchn_bind_virq(evtchn_bind_virq_t *bind) out: spin_unlock(&d->evtchn_lock); + printk("evtchn_bind_virq %d port %d\n", virq, port); if ( port < 0 ) return port; -- 2.30.2